import request from '@/utils/request'

// 查询评估指标列表
export function listScoringMetrics(query) {
  return request({
    url: '/system/scoringMetrics/list',
    method: 'get',
    params: query
  })
}

// 查询评估指标详细
export function getScoringMetrics(scoringMetricsId) {
  return request({
    url: '/system/scoringMetrics/' + scoringMetricsId,
    method: 'get'
  })
}

// 新增评估指标
export function addScoringMetrics(data) {
  return request({
    url: '/system/scoringMetrics',
    method: 'post',
    data: data
  })
}

// 修改评估指标
export function updateScoringMetrics(data) {
  return request({
    url: '/system/scoringMetrics',
    method: 'put',
    data: data
  })
}

// 删除评估指标
export function delScoringMetrics(scoringMetricsId) {
  return request({
    url: '/system/scoringMetrics/' + scoringMetricsId,
    method: 'delete'
  })
}
